loadzw=function(){
	let xml;
	if (window.XMLHttpRequest)
	{
	    //  IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
	    xml=new XMLHttpRequest();
	}
	else
	{
	    // IE6, IE5 浏览器执行代码
	    xml=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xml.onreadystatechange=function(){
		if(xml.readyState==4&&xml.status==200){
			
				let t=JSON.parse(xml.responseText);
				for(let i=0;i<t.data.length;i++){
				setmessagejg(t.data[i].rID,t.data[i].rName,t.data[i].rType)
				}
		}
	}
	xml.open("post","/roles/findall",true);
	xml.setRequestHeader('content-type','application/x-www-form-urlencoded');
	xml.send();
}
setmessagejg=function(iID,iName,iLevel){
	let maxbox=document.getElementsByClassName('mymainbox')[0];	
	let box1=document.createElement('div');
	box1.className='myemployees';
	let box2=document.createElement('div');
	let box3=document.createElement('div');
	let box4=document.createElement('div');
	let box6=document.createElement('div');
	let a=document.createElement('a');
	a.className="nav-link pl-3";
	a.innerText="修改权限";
	a.href="xgyg.html?rID="+iID;
	let lable1=document.createElement("label");
	lable1.className="fuhe";
	lable1.appendChild(a);
	box2.className='reviewbox1';
	box3.className='reviewbox2';
	box4.className='reviewbox2';
	box6.className='reviewbox2';
	box6.appendChild(lable1);
	box2.innerText=iID;
	box3.innerText=iName;
	box4.innerText=iLevel;
	box1.appendChild(box2);
	box1.appendChild(box3);
	box1.appendChild(box4);
	box1.appendChild(box6);
	maxbox.appendChild(box1);
}
